﻿using lingopen.Application;
using lingopen.AutoMapper;
using lingopen.Entity;
using lingopen.Entity.BLE;
using lingopen.Entity.System;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace lingopen.Application.BLE
{
    public class AddOrUpdateDuty_LogicInputBase : ValidationModel
    { 
        public string Name { get; set; } 
        public string Code { get; set; }

        public int? Interval_00 { get; set; }
        public int? Interval_01 { get; set; }
        public int? Interval_02 { get; set; }
        public int? Interval_03 { get; set; }
        public int? Interval_04 { get; set; }
        public int? Interval_05 { get; set; }
        public int? Interval_06 { get; set; }
        public int? Interval_07 { get; set; }
        public int? Interval_08 { get; set; }
        public int? Interval_09 { get; set; }
        public int? Interval_10 { get; set; }
        public int? Interval_11 { get; set; }
        public int? Interval_12 { get; set; }
        public int? Interval_13 { get; set; }
        public int? Interval_14 { get; set; }
        public int? Interval_15 { get; set; }
        public int? Interval_16 { get; set; }
        public int? Interval_17 { get; set; }
        public int? Interval_18 { get; set; }
        public int? Interval_19 { get; set; }
        public int? Interval_20 { get; set; }
        public int? Interval_21 { get; set; }
        public int? Interval_22 { get; set; }
        public int? Interval_23 { get; set; }

        public bool IsEnabled { get; set; }
        public string Description { get; set; }
    }

    [MapToType(typeof(BLE_Duty_Logic))]
    public class AddDuty_LogicInput : AddOrUpdateDuty_LogicInputBase
    {
        public string CreateUserId { get; set; }
    }

    [MapToType(typeof(BLE_Duty_Logic))]
    public class UpdateDuty_LogicInput : AddOrUpdateDuty_LogicInputBase
    {
        [RequiredAttribute(ErrorMessage = "{0}不能为空")]
        public string Id { get; set; }
    }
}
